<%@ tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="size" type="java.lang.Integer" required="true" %>
<%@ attribute name="name" required="true" %>
<%@ attribute name="id" %>
<%@ attribute name="selected" %>
<%@ attribute name="onChange" %>
<%@ attribute name="style" %>
<%@ attribute name="classe" %>
<%@ attribute name="multiple" %>
<%@ attribute name="map" type="java.util.Map" required="true"  %>
<select name="${name}"  id="${id}" size="${size}" onchange="${onChange}" style="${style}" ${classe} ${multiple}>
<c:forEach var="par" items="${map}">
    <c:set var="isSelected" value="" />
    <c:if test="${par.key eq selected}" >
        <c:set var="isSelected" value="selected" />
    </c:if>
    <option value="${par.key}" ${isSelected}>${par.value}</option>
</c:forEach>
</select>
